package com.youlai.boot.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.factory.model.entity.SysTenantDatasource;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.factory.model.query.SysTenantDatasourceQuery;
import com.youlai.boot.factory.model.vo.SysTenantDatasourceVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 租户数据源配置Mapper接口
 *
 * @author youlaitech
 * @since 2025-11-22 08:31
 */
@Mapper
public interface SysTenantDatasourceMapper extends BaseMapper<SysTenantDatasource> {

    /**
     * 获取租户数据源配置分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<SysTenantDatasourceVO>} 租户数据源配置分页列表
     */
    Page<SysTenantDatasourceVO> getSysTenantDatasourcePage(Page<SysTenantDatasourceVO> page, SysTenantDatasourceQuery queryParams);

}
